| Name | entity teleports |
| Event Lines | entity teleports
<entity> teleports |
| Triggers | when an entity teleports. |
| Generated Examples | after entity teleports:
after projectile teleports: on entity teleports: |
| Has Player | when the entity being teleported is a player. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Has NPC | when the entity being teleported is an NPC. |
| Switches | cause:<cause> to only process the event when it came from a specified cause. |
| Contexts | <context.entity> returns the EntityTag.
<context.origin> returns the LocationTag the entity teleported from.
<context.destination> returns the LocationTag the entity teleported to.
<context.cause> returns an ElementTag of the teleport cause - see teleport cause for causes.
|
| Determine | "ORIGIN:<LocationTag>" to change the location the entity teleported from.
"DESTINATION:<LocationTag>" to change the location the entity teleports to. |
| Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
| Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
| Group | Entity |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityTeleportScriptEvent.java#L32 |